const path = require('path')
//自动生成 文件打包引入
const HtmlWebpackPlugin = require('html-webpack-plugin')
//压缩和抽离css 
const MiniCssExtractPlugin = require("mini-css-extract-plugin")

//toml yaml json5 使用，json是默认可处理的
const toml = require('toml');
const yaml = require('yamljs');
const json5 = require('json5');
module.exports= {
    
        output:{
            filename:'script/[name].js',
        },
        //!生产环境
        // mode: 'development',
        mode: 'development',
        //!用来配置打包模式
        devtool: 'inline-source-map',
        
    
        //配置webpack-dev-server
        devServer:{
            static:'./dist'
        },   
    }